package matlap.client.services.distributor;


import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import matlap.shared.Distributor;
import matlap.shared.exceptions.MyException;

@RemoteServiceRelativePath("distributor")
public interface DistributorService extends RemoteService {
	int getDistributorsNumber() throws MyException;

	List<Distributor> getDistributors();

	List<Distributor> selectDistributorsName();

	List<Distributor> getDistributorsByName(String name);

	void updateDistributors(String username, String firstname, String lastname,
			String address);

	void deleteDistributors(String username);

	Distributor getDistributorsByUserName(String username);

	List<String> getUserNames();
}
